﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Data;
using System.Data;

namespace SharedIFaces
{    
    [ServiceContract]
    public interface IServer
    {
        [OperationContract]
        User CreateUser(String login, String password);

        [OperationContract]
        String GetTable(String table_name);

        [OperationContract]
        void UpdateTable(String table_name, String content);

        [OperationContract]
        void InsertToTable(String table_name, String content);

        [OperationContract]
        void DeleteFromTable(String table_name, String content);

        // вызов этого метода разорвет соединение
        [OperationContract/*(IsTerminating = true)*/]
        void Disconnect();
    }
}
